﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ORMAC.Attributes;

namespace ORMAC.UnitTest
{
    [Table("Item")]
    public class Item
    {
        [Field("ItemID")]
        [PrimaryKey]
        public int ID { get; set; }
        [Field("Description")]
        public string Description { get; set; }
        [Join(ParentCol = "InvoiceID", ChildCol = "InvoiceID")]
        public Invoice ItemInvoice { get; set; }
        [Join(ParentCol = "ItemID", ChildCol = "ItemID")]
        public List<Color> Colors { get; set; }
        [Field("Price")]
        public decimal Price { get; set; }
    }
}
